/**
 *
 */
package com.fita.webpay.entity.callback;


/**
 * @author lute
 */
public class CallbackResponse {

    private boolean valid;

    private String message;

    /**
     *
     */
    public CallbackResponse() {
        this.valid = false;
    }

    /**
     * @return
     */
    public CallbackResponse success() {
        this.valid = true;
        return this;
    }

    /**
     * @return
     */
    public CallbackResponse fail() {
        this.valid = false;
        return this;
    }

    /**
     * @param message
     * @return
     */
    public CallbackResponse message(String message) {
        this.message = message;
        return this;
    }

    /**
     * @return the valid
     */
    public boolean isValid() {
        return valid;
    }

    /**
     * @return the message
     */
    public String getMessage() {
        return message;
    }

}
